package com.lvyq.myplayer.ui.fragment

import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.lvyq.myplayer.R
import com.lvyq.myplayer.base.BaseFragment
import com.lvyq.myplayer.parcelable.MvPagerBeansData
import com.squareup.picasso.Picasso
import jp.wasabeef.picasso.transformations.CropCircleTransformation
import org.jetbrains.anko.find

class MvPlayDesFragment(var data:MvPagerBeansData?) : BaseFragment() {

    lateinit var song:TextView
    lateinit var singer:TextView
    lateinit var singerImg :ImageView
//    初始化播放页-简介页面
    override fun initView(): View? {
    var view = View.inflate(context, R.layout.activity_video_des, null)
    song= view.findViewById<TextView>(R.id.song)
    singerImg=view.findViewById<ImageView>(R.id.singerImg)
    singer=view.findViewById<TextView>(R.id.singer)

    return view
    }

    /**
     * 初始化数据
     */
    override fun initData() {
        singer.setText(data?.singer)
        song.setText(data?.title)
      //  Picasso.with(context).load(data?.singerImg).transform(CropCircleTransformation()).into(singerImg)
    }


}
